package com.lanhao.aot.javascript;

import cn.hutool.script.ScriptUtil;

public class JavaScriptInvoke {
	
	
	public static void main(String[] args) {
		
		String script = "function process(a) {return parseInt(a) + 3}";
		
		Object invoke = ScriptUtil.invoke(script, "process", "111");
		System.out.println(invoke.toString());
	}
	
}
